package com.left.tcc.inventory.controller;

import com.left.tcc.inventory.api.InventoryApi;
import com.left.tcc.inventory.dto.InventoryDTO;
import com.left.tcc.inventory.service.InventoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Slf4j
public class InventoryController implements InventoryApi {
    @Autowired
    private InventoryService inventoryService;
    @Override
    public String decrease(InventoryDTO obj) {
        log.info("进入库存的controller..........");
        this.inventoryService.decrease(obj);
        return  "1";
    }
}
